package test;

import impl.AbstractSorter;
import impl.InsertionSorter;

import java.util.List;

public class OrdenaNombre {

    private AbstractSorter insertion = new InsertionSorter();
    private NameComparator comparador = new NameComparator();

    public void ordenar(List nombres){
        insertion.sort(comparador,nombres);
    }
}
